# On RHEL/OEL/SL/CENTOS/FEDORA qmake is from Qt3, and qmake-qt4 is from Qt4.
# If qmake-qt4 isn't found look for the standard name qmake and assume it is
# from a useful version Qt.
+# On Ubuntu qmake-qt4 exists, but qmake-qt5 does not.
+# If we select qmake-qt4 this will defeat qtchooser.
+# we no longer support qt4.
if test -n "$ac_tool_prefix"; then
- for ac_prog in qmake-qt5 qmake-qt4 qmake
+ for ac_prog in qmake-qt5 qmake
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fi
if test -z "$QMAKE"; then
ac_ct_QMAKE=$QMAKE
- for ac_prog in qmake-qt5 qmake-qt4 qmake
+ for ac_prog in qmake-qt5 qmake
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
fi
if test -n "$ac_tool_prefix"; then
- for ac_prog in lupdate-qt5 lupdate-qt4 lupdate
+ for ac_prog in lupdate-qt5 lupdate
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fi
if test -z "$LUPDATE"; then
ac_ct_LUPDATE=$LUPDATE
- for ac_prog in lupdate-qt5 lupdate-qt4 lupdate
+ for ac_prog in lupdate-qt5 lupdate
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
fi
if test -n "$ac_tool_prefix"; then
- for ac_prog in lrelease-qt5 lrelease-qt4 lrelease
+ for ac_prog in lrelease-qt5 lrelease
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fi
if test -z "$LRELEASE"; then
ac_ct_LRELEASE=$LRELEASE
- for ac_prog in lrelease-qt5 lrelease-qt4 lrelease
+ for ac_prog in lrelease-qt5 lrelease
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
if test "$QMAKE" = no ; then
- as_fn_error $? "Qt4 or Qt5 is required, but neither was found" "$LINENO" 5;
+ as_fn_error $? "Qt5 is required, but neither was found" "$LINENO" 5;
fi
# guess the name of the Qt Core library.
# On RHEL/OEL/SL/CENTOS/FEDORA qmake is from Qt3, and qmake-qt4 is from Qt4.
# If qmake-qt4 isn't found look for the standard name qmake and assume it is
# from a useful version Qt.
-AC_CHECK_TOOLS(QMAKE, [qmake-qt5 qmake-qt4 qmake], "no")
-AC_CHECK_TOOLS(LUPDATE, [lupdate-qt5 lupdate-qt4 lupdate])
-AC_CHECK_TOOLS(LRELEASE, [lrelease-qt5 lrelease-qt4 lrelease])
+# On Ubuntu qmake-qt4 exists, but qmake-qt5 does not.
+# If we select qmake-qt4 this will defeat qtchooser.
+# we no longer support qt4.
+AC_CHECK_TOOLS(QMAKE, [qmake-qt5 qmake], "no")
+AC_CHECK_TOOLS(LUPDATE, [lupdate-qt5 lupdate])
+AC_CHECK_TOOLS(LRELEASE, [lrelease-qt5 lrelease])
if test "$QMAKE" = no ; then
- AC_MSG_ERROR([Qt4 or Qt5 is required, but neither was found]);
+ AC_MSG_ERROR([Qt5 is required, but neither was found]);
fi
# guess the name of the Qt Core library.